package com.wo.cloud.log.event;

import com.wo.cloud.core.entity.CommonLog;
import lombok.Data;
import org.springframework.context.ApplicationEvent;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/4/30 9:28
 * Description: 日志事件
 */
@Data
public class LogEvent extends ApplicationEvent {

    // 事件类型
    private String eventType;

    public LogEvent(CommonLog source, String eventType) {
        super(source);
        this.eventType = eventType;
    }

    public LogEvent(CommonLog source) {
        super(source);
    }
}
